const WebpackHtmlPlugin = require("html-webpack-plugin");
const path = require("path");
module.exports = {
  mode: "development",
  module: {
    // 不对test.js进行语法分析，就报错了
    noParse: /test/,
  },
  plugins: [
    new WebpackHtmlPlugin({
      template: path.resolve(__dirname, "./public/index.html"),
    }),
  ],
};
